package com.bw.mvvm_common.mvvm.utils;

import android.content.SharedPreferences;

import com.bw.mvvm_common.BaseApplication;

public
/**
 * @author Lishaohe
 * @description:
 * @date :2021/10/13 0013 下午 4:14
 *
 */
class SPUtils {
    private static String name = "catch";
    public static void writeToken(String value){
        SharedPreferences sharedPreferences = BaseApplication.getApplication().getSharedPreferences(name, 0);
        sharedPreferences.edit().putString("token",value).commit();
    }
    public static String readToken(){
        SharedPreferences sp = BaseApplication.getApplication().getSharedPreferences(name,0);
        return sp.getString("token","");
    }
}
